<%# Copyright 2009 Swansea University

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
%>


<p><label for="project_title">Title:</label>
<%= f.text_field :title, :size => 80, :class => "project_title"%></p>
<p><label for="created_by">Supervisor</label>: <%= f.collection_select(:created_by, supervisors, :id, :name, {:prompt => '-Select supervisor'}) %>


<p><label for="project_sure">This is a Swansea University Racecar Engineering (SURE) Project:</label>
<%= f.check_box :sure %></p>
<p><label for="project_carbon_critical">This is a Carbon Critical (C<sup>2</sup>) project:</label>
<%= f.check_box :carbon_critical %></p>

<fieldset title="Description of this project">
  <legend>Project description</legend>
  <table border="0" summary="Table used to layout form.">
    <tr>
      <td>
        <label for="project_description">Description:</label><br />
        <%= f.text_area  :description, :rows => 25, :cols => 60 %>
      </td>
      <td valign="top">
        Suitable for:<br />
        <%= collection_multiple_select('project', 'discipline_ids',
          Discipline.find(:all, :order => "long_name"),
          :id, :long_name,
          :outer_class => "multiple_select", :inner_class => "multiple_select_checkbox", :alternate => true ) %>
      </td>
    </tr>
    <tr>
      <td colspan="2">
        <label for="project_resources">Resources required:</label><br />
        <%= f.text_area  :resources, :rows => 5, :cols => 80 %>
      </td>
    </tr>
  </table>





</fieldset>
</p>


